// 持久层
// 持久层
// 引入mongoose模块
const mongoose = require("mongoose");

let bannersSchema = new mongoose.Schema({
  num: String, // 序号
  notes: String, // 备注
  url: String, // 图片路径
  status: String, // 状态
  createTime: String, // 创建时间
});

module.exports = mongoose.model("bannersModel", bannersSchema, "banners");